import { request } from 'ngfe-request'

// 获取编码
export async function getCode(params: any) {
  return request('/getCode', {
    method: 'POST',
    mode: 'cors',
    data: {
      sysHead: {
        stdSvcInd: 'GenerateCodeSVC',
        stdIntfcInd: 'getCode',
        stdIntfcVerNo: '1.0.0',
        srcConsmSysInd: 'DAM',
      },
      body: {
        ...params,
      },
    }
  })
}